#ifndef MSGDEF_H
#define MSGDEF_H
#include <QObject>
#include <QQueue>
#pragma pack(push,1)
struct PacketHead
{
    quint8 laneId;      //存放车道信息
    quint8 type;
    quint32 length;
};
struct initInfo
{
    quint8 isInited;
    quint8 deviceState;
    quint8 useVpr;
    quint8 useTimeOut;
    quint8 useMoreDel;
};
struct vehTypeInfo
{
    quint8 vehType;
    quint64 vehTime;
};
struct vehQueueInfo
{
    quint8 vehCount;
    vehTypeInfo vheQueue[5];
};
struct currentVehInfo
{
    quint8 finalVehType;
    char vehPlate[20];
    quint64 curTime;
};
struct vcrLogInfo
{
    quint64 logTime;
    char logMsg[256];
};
#pragma pack(pop)
typedef QQueue<vehTypeInfo> myQueue;
typedef currentVehInfo myVehInfo;
#endif // MSGDEF_H
